const ajax = window.ajaxBusinessContract;
//应付统计
export const apiPayStatistics = (params) => ajax.request(`/v1/business/payable/statistics`, 'post', params, {
  showLoading: true
});

//应付列表
export const apiPayList = (params) => ajax.request(`/v1/business/payable/list`, 'post', params, {
  showLoading: true
});

//应付导出
export const apiPayExport = (params) => ajax.download(`/v1/business/payable/exportData`, params, {
  showLoading: true,
  responseType: 'blob'
});

//支出子类下拉,收费项下啦
export const apiPaysonList = (param) => ajax.request(`/v1/business/chargeItem/list`, 'post', param, {
  showLoading: true
});

//下载模板
export const apiPaysonDownload = (params) => ajax.download(`/v1/business/payable/export`, params, {
  showLoading: true,
  responseType: 'blob'
});


//付款导入
export const apiPayImport = (params) => ajax.uploadParam(`/v1/business/payable/import`, params, {
  showLoading: true
});

//应付列表
export const paymentList = (params) => ajax.request(`/v1/business/finance/payable/record/list`, 'post', params, {
  showLoading: true
});
//应付上报审核
export const paymentRecordCreated = (params) => ajax.request(`/v1/business/finance/payable/record/create`, 'post', params, {
  showLoading: true
});
//应付上报详情
export const paymentDetail = (params) => ajax.request(`/v1/business/finance/payable/record/detail/${params}`, 'get', '', {
  showLoading: true
});
//应付事项
export const paymentItemList = (params) => ajax.request(`/v1/business/finance/payable/record/charge/item/list`, 'post', params, {
  showLoading: true
});
//应付导出
export const paymentListExport = (params) => ajax.request(`/v1/business/finance/payable/record/list/export`, 'post', params, {
  showLoading: true
});
//提交审核
export const apiCreateAudit = (param) => ajax.request(`/v1/contract/process/business/createRuOrder`, 'post', param, {
  showLoading: true
});
//应付审核
export const paymentListDelete = (param) => ajax.request(`/v1/business/finance/payable/record/process/map/del`, 'post', param, {
  showLoading: true
});
//流程意见
export const apiFlowOption = (param) => window.ajaxBase.request(`/v1/rent/process/business/getMessage`, 'post', param, {
  showLoading: true
});
//单独常量
export const recordConstant = (params) => ajax.request(`/v1/business/finance/payable/record/constant`, 'get', '', {
  showLoading: true
});